<!DOCTYPE html>
<html>
<head>
    <title>所有用户文件夹</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
</head>
<body>
    <div class="container dashboard" style="background:#f9f9f9; padding:2rem; border-radius:8px;">
        <h2 style="color:#3498db;"><i class="fas fa-users"></i> 所有用户文件夹</h2>
        {% for user in users %}
        <div style="margin-bottom:2rem; background:#fff; border-radius:8px; box-shadow:0 2px 8px #eee; padding:1.5rem;">
            <h4 style="margin-bottom:1rem;"><i class="fas fa-user"></i> 用户: {{ user.email }} (ID: {{ user.id }})</h4>
            {% if user.folders %}
                {% for folder in user.folders %}
                <div style="margin-bottom:1rem;">
                    <b>文件夹:</b> {{ folder.name }}
                    <ul>
                        {% for file in folder.files %}
                        <li>{{ file }}</li>
                        {% endfor %}
                    </ul>
                </div>
                {% endfor %}
            {% else %}
                <div style="color:#888;">无文件夹</div>
            {% endif %}
        </div>
        {% endfor %}
    </div>
</body>
</html>
